package com.qingcheng.service;
import com.qingcheng.entity.PageResult;
import com.qingcheng.pojo.order.Order;
import com.qingcheng.pojo.order.OrderItem;

import java.util.*;

/**
 * orderItem业务逻辑层
 */
public interface OrderItemService {


    public List<OrderItem> findAll();


    public PageResult<OrderItem> findPage(int page, int size);


    public List<OrderItem> findList(Map<String,Object> searchMap);


    public PageResult<OrderItem> findPage(Map<String,Object> searchMap,int page, int size);


    public OrderItem findById(String id);

    public void add(OrderItem orderItem);


    public void update(OrderItem orderItem);


    public void delete(String id);

    /**
     * 根据订单号查询订单详情
     * @return 订单数据
     */
    public List<Map> findOrderItemByOrderId(String orderId);

    /**
     *
     * @param orderId
     * @return
     */
    List<OrderItem> queryByOrderId(String orderId);
}
